.class Lcom/waiqin365/base/print/x;
.super Landroid/os/Handler;


# instance fields
.field final synthetic a:Lcom/waiqin365/base/print/PrintTemplateSettingActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/base/print/PrintTemplateSettingActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/base/print/x;->a:Lcom/waiqin365/base/print/PrintTemplateSettingActivity;

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 4

    const/4 v3, 0x0

    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    iget v0, p1, Landroid/os/Message;->what:I

    packed-switch v0, :pswitch_data_0

    :goto_0
    return-void

    :pswitch_0
    iget-object v0, p0, Lcom/waiqin365/base/print/x;->a:Lcom/waiqin365/base/print/PrintTemplateSettingActivity;

    invoke-virtual {v0}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->dismissProgressDialog()V

    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Lcom/waiqin365/base/print/a/a/f;

    if-eqz v0, :cond_1

    invoke-virtual {v0}, Lcom/waiqin365/base/print/a/a/f;->b()Z

    move-result v1

    if-eqz v1, :cond_1

    const-string/jumbo v1, "1"

    iget-object v0, v0, Lcom/waiqin365/base/print/a/a/f;->d:Ljava/lang/String;

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/base/print/x;->a:Lcom/waiqin365/base/print/PrintTemplateSettingActivity;

    iget-object v1, p0, Lcom/waiqin365/base/print/x;->a:Lcom/waiqin365/base/print/PrintTemplateSettingActivity;

    const v2, 0x7f080718

    invoke-virtual {v1, v2}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1, v3}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto :goto_0

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/base/print/x;->a:Lcom/waiqin365/base/print/PrintTemplateSettingActivity;

    iget-object v1, p0, Lcom/waiqin365/base/print/x;->a:Lcom/waiqin365/base/print/PrintTemplateSettingActivity;

    const v2, 0x7f080717

    invoke-virtual {v1, v2}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1, v3}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto :goto_0

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/base/print/x;->a:Lcom/waiqin365/base/print/PrintTemplateSettingActivity;

    iget-object v1, p0, Lcom/waiqin365/base/print/x;->a:Lcom/waiqin365/base/print/PrintTemplateSettingActivity;

    const v2, 0x7f08013b

    invoke-virtual {v1, v2}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1, v3}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto :goto_0

    :pswitch_1
    iget-object v0, p0, Lcom/waiqin365/base/print/x;->a:Lcom/waiqin365/base/print/PrintTemplateSettingActivity;

    invoke-virtual {v0}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->dismissProgressDialog()V

    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Lcom/waiqin365/base/print/a/a/d;

    if-eqz v0, :cond_6

    invoke-virtual {v0}, Lcom/waiqin365/base/print/a/a/d;->b()Z

    move-result v1

    if-eqz v1, :cond_6

    const-string/jumbo v1, "1"

    iget-object v2, v0, Lcom/waiqin365/base/print/a/a/d;->d:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_5

    const-string/jumbo v1, "58"

    iget-object v2, v0, Lcom/waiqin365/base/print/a/a/d;->f:Lcom/waiqin365/base/print/b/c;

    iget-object v2, v2, Lcom/waiqin365/base/print/b/c;->c:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_4

    iget-object v1, p0, Lcom/waiqin365/base/print/x;->a:Lcom/waiqin365/base/print/PrintTemplateSettingActivity;

    const/4 v2, 0x2

    invoke-static {v1, v2}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->a(Lcom/waiqin365/base/print/PrintTemplateSettingActivity;I)V

    :goto_1
    iget-object v1, v0, Lcom/waiqin365/base/print/a/a/d;->f:Lcom/waiqin365/base/print/b/c;

    iget-object v1, v1, Lcom/waiqin365/base/print/b/c;->a:Ljava/lang/String;

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_2

    iget-object v1, p0, Lcom/waiqin365/base/print/x;->a:Lcom/waiqin365/base/print/PrintTemplateSettingActivity;

    invoke-static {v1}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->a(Lcom/waiqin365/base/print/PrintTemplateSettingActivity;)Landroid/widget/EditText;

    move-result-object v1

    iget-object v2, v0, Lcom/waiqin365/base/print/a/a/d;->f:Lcom/waiqin365/base/print/b/c;

    iget-object v2, v2, Lcom/waiqin365/base/print/b/c;->a:Ljava/lang/String;

    invoke-virtual {v1, v2}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    :cond_2
    iget-object v1, v0, Lcom/waiqin365/base/print/a/a/d;->f:Lcom/waiqin365/base/print/b/c;

    iget-object v1, v1, Lcom/waiqin365/base/print/b/c;->b:Ljava/lang/String;

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_3

    iget-object v1, p0, Lcom/waiqin365/base/print/x;->a:Lcom/waiqin365/base/print/PrintTemplateSettingActivity;

    invoke-static {v1}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->b(Lcom/waiqin365/base/print/PrintTemplateSettingActivity;)Landroid/widget/EditText;

    move-result-object v1

    iget-object v2, v0, Lcom/waiqin365/base/print/a/a/d;->f:Lcom/waiqin365/base/print/b/c;

    iget-object v2, v2, Lcom/waiqin365/base/print/b/c;->b:Ljava/lang/String;

    invoke-virtual {v1, v2}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    :cond_3
    iget-object v0, v0, Lcom/waiqin365/base/print/a/a/d;->f:Lcom/waiqin365/base/print/b/c;

    iget-object v0, v0, Lcom/waiqin365/base/print/b/c;->d:Ljava/lang/String;

    iget-object v1, p0, Lcom/waiqin365/base/print/x;->a:Lcom/waiqin365/base/print/PrintTemplateSettingActivity;

    invoke-static {v1, v0}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->a(Lcom/waiqin365/base/print/PrintTemplateSettingActivity;Ljava/lang/String;)V

    goto/16 :goto_0

    :cond_4
    iget-object v1, p0, Lcom/waiqin365/base/print/x;->a:Lcom/waiqin365/base/print/PrintTemplateSettingActivity;

    const/4 v2, 0x1

    invoke-static {v1, v2}, Lcom/waiqin365/base/print/PrintTemplateSettingActivity;->a(Lcom/waiqin365/base/print/PrintTemplateSettingActivity;I)V

    goto :goto_1

    :cond_5
    iget-object v0, p0, Lcom/waiqin365/base/print/x;->a:Lcom/waiqin365/base/print/PrintTemplateSettingActivity;

    const-string/jumbo v1, "\u83b7\u53d6\u6a21\u677f\u9519\u8bef"

    invoke-static {v0, v1, v3}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto/16 :goto_0

    :cond_6
    iget-object v0, p0, Lcom/waiqin365/base/print/x;->a:Lcom/waiqin365/base/print/PrintTemplateSettingActivity;

    const-string/jumbo v1, "\u7f51\u7edc\u9519\u8bef"

    invoke-static {v0, v1, v3}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto/16 :goto_0

    :pswitch_data_0
    .packed-switch 0x65
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method
